using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.BLL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.ProcessFlow
{
    public class ProductController
    {
        // Methods
        public void Delete(int pro_id)
        {
            new Product().Delete(pro_id);
        }

        public IList getProductList(int menu_id)
        {
            Product product = new Product();
            return product.getProductList(menu_id);
        }

        public ProductInfo getProudctInfo(int pro_id)
        {
            Product product = new Product();
            return product.getProductInfo(pro_id);
        }

        public void Insert(ProductInfo proinfo)
        {
            new Product().Insert(proinfo);
        }

        public void Update(ProductInfo proinfo)
        {
            new Product().Update(proinfo);
        }

    }
}
